<?php
class DatabaseStatus{
	
	private $conn;
	
	public function DatabaseStatus(){
		$this->conn = new Connection();
	}
	
	public function getStatus(){
		try {
			if($this->conn)
				return 1;
			else
				return 0;
		} catch (Exception $e) {
			return 0;
		}
		
	}
}
?>